#ifndef TAG_HEADER_H
#define TAG_HEADER_H

#include <cstdio>
#include <tinyxml.h>
#include "type.h"

namespace swfstream {
class TagHeader {
public:
	uint32 length;
	uint16 type; //bits 10
	void print();
	static TagHeader* from_file(FILE* f);
	virtual TiXmlElement* toTiXmlElement();

};
}

#endif
